<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>index</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->	
	<link rel="stylesheet" href="css/chat.css" type="text/css"></link>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	
	<script type="text/javascript">
		$(function(){			
			$("#enterChatButton").click(function(){
				var isSer = $('#isService').attr('checked');				
				if(isSer == true){					
					$("#form").attr("action","helpCenter.jsp").submit();
				}
				else{							
					$("#form").attr("action","customerChat.jsp").submit();
				}
			});
				
		});
	</script>
	</head>
	<body>
		<div id="enterChatDiv">
			<form  id="form">
				<p>
					Nickname:
					<input type="text" id="nick" name="nick" value="" />
				</p>
				是否客服人员：
				<input type="checkbox" id="isService" name="isService" checked>
				<input type="button" id="enterChatButton" name="enterChatButton" value="EnterChat"/>				
			</form>
		</div>
		<script type="text/javascript">
			document.forms[0].nick.focus();
		</script>
	</body>
</html>
